.el-button {
  --el-button-hover-text-color: var(--use-color-info) !important;
}

.el-button--primary {
  --el-button-text-color: var(--use-color-info) !important;
  --el-button-active-color: var(--use-color-info) !important;
  --el-button-hover-bg-color: var(--use-color-light-2) !important;
  --el-button-active-bg-color: var(--use-color-primary) !important;
  --el-button-active-border-color: var(--use-color-primary) !important;
  --el-button-hover-text-color: var(--use-color-info-light-2) !important;
  --el-button-hover-border-color: var(--use-color-light-2) !important;
}

.el-dropdown__popper.el-popper {
  border-radius: 12px !important;
}

.el-dialog {
  --el-dialog-border-radius: 24px !important;
}

.el-radio__input.is-checked + .el-radio__label,
.el-checkbox__input.is-checked + .el-checkbox__label {
  color: var(--use-color-info) !important;
}

.el-radio__input.is-checked .el-radio__inner,
.el-checkbox__input.is-checked .el-checkbox__inner {
  border-color: var(--use-color-info) !important;
  background: var(--use-color-info) !important;
}

.el-table {
  color: var(--use-color-info-light-2) !important;
}

.el-form-item--default {
  margin-bottom: 20px;
}


/* proTable */
.table-box,
.table-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  height: 100%;

  // table-search 表格搜索样式
  .table-search {
    padding: 18px 18px 0;
    margin-bottom: 10px;
    .el-form {
      .el-form-item__content > * {
        width: 100%;
      }

      // 去除时间选择器上下 padding
      .el-range-editor.el-input__wrapper {
        padding: 0 10px;
      }
    }
    .operation {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      margin-bottom: 18px;
    }
  }

  // 表格 header 样式
  .table-header {
    .header-button-lf {
      float: left;
    }
    .header-button-ri {
      float: right;
    }
  }

  // el-table 表格样式
  .el-table {
    flex: 1;

    // 修复 safari 浏览器表格错位 https://github.com/HalseySpicy/Geeker-Admin/issues/83
    table {
      width: 100%;
    }
    .el-table__header th {
      height: 45px;
      font-size: 15px;
      font-weight: bold;
      color: var(--el-text-color-primary);
      background: var(--el-fill-color-light);
    }
    .el-table__row {
      height: 45px;
      font-size: 14px;
      .move {
        cursor: move;
        .el-icon {
          cursor: move;
        }
      }
    }

    // 设置 el-table 中 header 文字不换行，并省略
    .el-table__header .el-table__cell > .cell {
      // white-space: nowrap;
      white-space: wrap;
    }

    // 解决表格数据为空时样式不居中问题(仅在element-plus中)
    .el-table__empty-block {
      padding: 30px 0;
      .table-empty {
        line-height: 30px;
      }
    }

    // table 中 image 图片样式
    .table-image {
      width: 50px;
      height: 50px;
      border-radius: 50%;
    }
  }

  // 表格 pagination 样式
  .el-pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
  }
}
